package book;

public class Booklist {
    private Book[] books = new Book[10];    //组合

    private int booksum = 3;

    public int getBooksum() {
        return booksum;
    }

    public void setBooksum(int booksum) {
        this.booksum = booksum;
    }

    public Book getbook(int pos){
        return books[pos];
    }

    public void setbook(int pos,Book book){
        books[pos] = book;
    }


    public Booklist() {
        this.books[0] = new Book("三国演义","罗贯中","小说",10.5,false);
        this.books[1] = new Book("红楼梦","曹雪芹","小说",19,false);
        this.books[2] = new Book("西游记","吴承恩","小说",13.5,false);
    }


}
